<?php

class CampaignController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }

    public function addAction()
    {
        $form = new Application_Form_CampaignAdd();
        
        $this->view->form = $form;
    }

    public function getcustomerformAction()
    {
    	$request = $this->getRequest();
    	$salesrep = $request->getParam('salesrepid');
    	$customerDb = new Application_Model_DbTable_Customer();
    	$data = $customerDb->getCustomerBySalesrep($salesrep);
    	$this->_helper->json($data);
    }

}



